package com.yaser.service;


import com.yaser.model.User;
import com.yaser.util.exceptions.FreeBoxServiceException;

public interface AuthenticationService {

	
	/**
	 * 
	 * Returns the {@link User} object from database
	 * 
	 * @param name 
	 * 			name of the user
	 * @param password
	 * 			password of the user
	 * @return
	 * 			{@link User} object
	 * @throws FreeBoxServiceException
	 */
	public User loginUser(String name, String password) throws FreeBoxServiceException;

	/**
	 * 
	 * Returns {@link Boolean} value according  to login operation
	 * 
	 * @param username
	 * @param password
	 * @return
	 */
	public boolean login(String username, String password);
	

	void logout();
	
}
